package com.example.demo.feignClient;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.stereotype.Component;

@Component
public class FeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        System.out.println("Feign 啦啦啦啦啦德玛西亚");
        requestTemplate.header("token", "21234214");
    }
}
